let pref = 'api/v2/app';
export default {
  GET_SRVITEMBYID:pref + '/srvItem/getSrvItem',
  GET_SRVITEMLIST:pref + '/srvItem/getSrvItemList',
  CREATE_SRVITEM:pref + '/srvItem/createItem',
  UPDATE_SRVITEM:pref + '/srvItem/updateItem',
  CHANGE_STATUS:pref + '/srvItem/isActivate',
  DELETE_SRVITEM:pref + '/srvItem/deleteItems',
  GET_ALLUSERS:pref + '/srvItem/getAllUsers',
  GET_MODEL_LIST:pref + '/srvItem/getModelList',

  GET_SRVLIST:pref + '/srvcatDir/getSrvList',
  GET_SRVCATBASEINFO_BY_ID(srvId) {
    return pref + '/srvcatDir/getSrvBaseInfo?id=' + srvId;
  },  
  CREATE_SRVCATDIR:pref + '/srvcatDir/createSrvcatDir',
  UPDATE_SRVCATDIR:pref + '/srvcatDir/updateSrvCat',
  DELETE_SRVCAT_BY_ID:pref + '/srvcatDir/delSrvcatDirById',
  
  CREATE_STANDARD: pref + '/srvStandard/createStandard',
  GET_STANDARDLIST: pref + '/srvStandard/getSrvStandardList',
  UPDATE_STANDARD: pref + '/srvStandard/updateStandard',
  DELETE_STANDARD: pref + '/srvStandard/deleteStandard',
  GET_STANDARD_DETAIL: pref + '/srvStandard/getDetail',
  GET_OPERLIST(obj) {
    if (null != obj && obj.length > 0) {
      return pref + '/app/srvItem/getAllUsers?name=' + obj;
    } else {
      return pref + '/app/srvItem/getAllUsers';
    }
  },
  GET_POP_SERVICE_ITEM: pref + '/srvItem/portal/getPopServiceItem',
  GET_SERVICES_LIST:pref + '/srvcatDir/portal/getServicesList',
  GET_ALL_SERVICES:pref + '/srvcatDir/portal/getAllServices',
  GET_SUB_SERVICES:pref + '/srvcatDir/portal/getSubServices'
}
